package main

import (
	"fmt"
	"github.com/aristanetworks/goarista/monotime"
	"time"
)

func main() {
var elapsed time.Duration
start := monotime.Now() //获得当前单调时间
time.Sleep(time.Millisecond)//睡眠1毫秒
elapsed = monotime.Since(start)//测算时间

fmt.Println(elapsed)
// Prints: 1.062759ms
}
